package com.lap.framework.common.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@NoArgsConstructor
@SuperBuilder
public abstract class AbstractEntity implements Tenantable, Auditable, Serializable {

  @Schema(description = "创建人")
  private String createdBy;

  @Schema(description = "创建时间")
  private LocalDateTime createTime;

  @Schema(description = "最后更新人")
  private String updatedBy;

  @Schema(description = "最后更新时间")
  private LocalDateTime updateTime;

  @Schema(description = "租户编码")
  private String tenantCode;
}
